<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/content/addtopic" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>添加话题</h1>
    </div>
    <div class="form">
      <form method="POST" action="{:URL('admin/Content/doaddtopic')}" id="J_form" name="detail_form" enctype="multipart/form-data">
        <input type="hidden" name="topic_id" value="{$topic_id}">
        <dl class="kv" id="dl_topic_name">
          <dt>
            话题名称：
          </dt>
          <dd>
            <input name="name" id="name" type="text" value="{$name}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv" id="dl_des">
          <dt>
            话题简介：
          </dt>
          <dd>
            <textarea name="des" id="des" rows="10" cols="80">{$des}</textarea>
          </dd>
        </dl>
        <dl class="kv" id="dl_pic">
          <dt>
            图片：
          </dt>
          <dd>
            <div>
              <input type="text" class="input-text" id="imageurl" name="pic" value="{$pic}" />
              <input type="button" class="btn" id="image" value="选择图片" />
              <div>
                <img id="show_pic" src="{$pic}" class="pic-size">
              </div>
            </div>
            <p class="tip">最佳图片大小为620*200</p>
          </dd>
        </dl>
        <dl class="kv" id="dl_topic_user">
          <dt>
            话题人物推荐：
          </dt>
          <dd>
            <div class="choose-user left">
              <input style="display:none" name="avoidSubmitByReturn">
              <input type="hidden" rel="uids" id="search_uids" name="topic_user" value="">
              <input event-node="search_user" event-args="name=topic_user&amp;uid=&amp;defaultValue=" value="" type="text" onfocus="this.className='input-text-focus'" onblur="this.className='input-text'" class="input-text" name="" autocomplete="off">
            </div>
            <p class="tip">最多设置9个人物推荐</p>
          </dd>
        </dl>
        <dl class="kv" id="dl_recommend">
          <dt>
            设为推荐：
          </dt>
          <dd>
            <label>
              <input type="radio" name="recommend" value="1" <eq name="recommend" value="1">checked</eq>> 是
            </label>
            <label>
              <input type="radio" name="recommend" value="0" <neq name="recommend" value="1">checked</neq>> 否
            </label>
            <p class="tip">最多设置10个热门话题</p>
          </dd>
        </dl>
        <div class="actions">
          <input type="submit" class="btn btn-y" value="保存">
          <input type="button" class="btn btn-n" value="返回" onclick="javascript:location.href='{:URL('admin/Content/topic')}'">
        </div>
      </form>
    </div>
  </div>
</body>

</html>
